<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Bootstrap 弹出框实例</title>
    <meta name="description" content="This is an example to create Popover with Bootstrap.">
    <link href="/try/bootstrap/twitter-bootstrap-v2/docs/assets/css/bootstrap.css" rel="stylesheet">
</head>
<script type="text/jscript" src="jquery-1.10.2.min.js"></script>
<script type="text/javascript">
    function delTr(obj){ //删除行
        $(obj).parent().parent().remove();
    }
    function addTr(){  //增加行
        $("#tab tr:last").after('<tr><td>名称</td><td><input type="button" onclick="delTr(this)" value="删除"/></td></tr>')
    }
</script>
<body>
<input type="button" onclick="addTr()" value="添加"/>
<table border="1px #ooo" id="tab" cellpadding="0" cellspacing="0" width="30%">
    <tr>
        <td>名称</td>
        <td>操作</td>
    </tr>
</table>

</body>
</html>